/*
package pathfinding;

import java.io.Serializable;
import java.util.ArrayList;

import base.Timestamped;

import com.sun.sgs.app.ManagedObject;
import com.sun.sgs.app.ManagedReference;

import pathfinding.DStarGridDiag;


public class DStarPathfinder extends DStarGridDiag implements IPathfinder <GridCell>, Serializable, ManagedObject {
	
	public DStarPathfinder(Timestamped<GridCell> start, Timestamped<GridCell> goal, 
			ManagedReference<SpaceTimeReservationTable> tableRef) {
		super(start, goal);
		this.tableRef = tableRef;
		// TODO Auto-generated constructor stub
	}

	protected ManagedReference<SpaceTimeReservationTable> tableRef;
	
	private static final long serialVersionUID = 1L;

	@Override
	public ArrayList<Timestamped<GridCell>> getPath(GridCell start,
			GridCell goal) {
		ArrayList <Timestamped<GridCell>> result = new ArrayList <Timestamped<GridCell>>();
		
		if (start == null || goal == null) {
			return result;
		}
		
		Timestamped <GridCell> c = new Timestamped<GridCell>(goal.clone(), Long.MAX_VALUE);
		result.add(c);
		return result;
	}

	@Override
	public double getCost(ArrayList<Timestamped<GridCell>> path) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void notifyOfChange(GridCell u, GridCell v, double cOld, double cNew) {
		// TODO Auto-generated method stub
		
	}
	
	@Override
	public boolean needsUpdate() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	protected long timeToNext() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	protected boolean isReserved(GridCell c, long timeStart, long timeEnd) {
		return tableRef.get().isReserved(c, timeStart, timeEnd);
	}

}
*/